#ifndef QABSTRACTUNDOCOMMAND_H
#define QABSTRACTUNDOCOMMAND_H

#include "../corelibglobal.h"

#include <QUndoCommand>
#include <QMap>
#include <QVariant>

namespace CORELIB
{
    class QCommandObject;

    class CORELIB_EXPORT QAbstractUndoCommand : public QUndoCommand
    {
    public:
    public:
        QAbstractUndoCommand(const QMap<QString,QVariant> &param,QUndoCommand *parent=0);
        ~QAbstractUndoCommand();

        void redo();
        void undo();

        QCommandObject* object();
    protected:
        QCommandObject*     m_object;
    };

}

#endif // QABSTRACTUNDOCOMMAND_H
